#include "junix.h"

void __error (int status, int errnum, const char *message, ...)
	     __attribute__ ((__format__ (__printf__, 3, 4)));

int main(int argc, char **argv)
{
	__error(9,9,"%s","hello,world!");
	return 0;
}


void __error (int status, int errnum, const char *message, ...)
{
	va_list ap;
    va_start(ap, message);
    vfprintf(stderr, message, ap);
    fprintf(stderr, ": %s\n", strerror(errnum));
    va_end(ap);

    exit(status);
}

